//: Playground - noun: a place where people can play

import UIKit

var str = "Hello, playground"


var locList = [
    "上海","东京","上海","大连","北京","上海"
]




//获取正确的删除索引
func getRemoveIndex(value:String,aArray:[String]) -> [Int]{
    
    var indexArray : [Int]
    var correctArray : [Int]
    
    
    //获取指定值在数组中的索引并保存
    for (index,a) in enumerate(aArray){
        if( value == aArray[index]){
            //如果在数组中找到指定的值，则把索引添加到 索引数组
            indexArray.append(index)
            
        }
        
        
    }
    
    
    //计算正确的删除索引
    
    
    
    
    
    //返回正确的删除索引
    return correctArray
}